const path = require('path')
module.exports = {
  devServer: {
    proxy: {
      "/api": {
        target: "http://back.9yuecloud.com/admin",
        change:true,
        pathRewrite: {
          "^/api": ''
        }
      }
    }
  },
  configureWebpack: {
    resolve: {
      alias: {
        'com': path.resolve(__dirname, './src/components'),
        'uti': path.resolve(__dirname, './src/utils'),
        'api': path.resolve(__dirname, './src/api'),
        'lay': path.resolve(__dirname, './src/layouts'),
        'view': path.resolve(__dirname, './src/views'),
      }
    }
  }
}
